package com.workshop.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author chengluqiang
 * @since 2019-04-13
 */
@Data
@Accessors(chain = true)
public class AArticleKey extends Model<AArticleKey> {

    private static final long serialVersionUID = 1L;

    /**
     * 文章分类id
     */
    @TableId("categoryId")
    private Long categoryId;
    /**
     * 文章id
     */
    @TableField("articleId")
    private String articleId;


    public static final String CATEGORYID = "categoryId";

    public static final String ARTICLEID = "articleId";

    @Override
    protected Serializable pkVal() {
        return this.categoryId;
    }

}
